﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QSqlDatabase> //数据驱动
#include <QSqlQuery> //数据库执行语句
#include <QMessageBox>//消息盒子
#include <QMainWindow>
#include<QSvgRenderer>
#include<QDebug>
#include<QPainter>
#include <QMouseEvent>//鼠标移动

void sqlite_Init();

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void set_Head();
protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
private slots:
    void on_Login_Button_2_clicked();

    void on_Register_Button_2_clicked();

    void on_pushButton_close_clicked();

private:
    Ui::MainWindow *ui;
    QPoint last;
};
#endif // MAINWINDOW_H
